const app = require('express');
const router = app.Router();
var news = require("../../controllers/news.controller");
var uploadNews = require('../../libs/news.lib');
var newsController = require('../../controllers/news.controller');

router.get("/detail", news.getItem)

router.get("/getList", news.getList);

router.post("/newArticle", uploadNews.upload_file, newsController.addItem);

router.post("/delete", newsController.deleteItems)

router.post("/changeArticle", uploadNews.update_file, newsController.updateItem);

module.exports = router;